package cn.moningxi.service.impl;

import cn.moningxi.bean.GPicture;
import cn.moningxi.mapper.GPictureMapper;
import cn.moningxi.service.GPictureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GPictureServiceImpl implements GPictureService {
    @Autowired
    GPictureMapper gPictureMapper;

    /**
     * 根据商品id查询商品图片
     * @param gid
     * @return
     */
    @Override
    public List<GPicture> queryByGid(Integer gid) {
        return gPictureMapper.queryByGid(gid);
    }
}
